from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep
from options import options
from login import Login
url=r'http://192.168.226.131/upload/'
driver=webdriver.Chrome(options=options)
driver.get(url)
driver.maximize_window()
login=Login(driver)
#注册
driver.find_element(By.XPATH,'//*[@id="lsform"]/div/div/table/tbody/tr[2]/td[4]/a').click()
sleep(3)
driver.find_element(By.ID,'gbDhmm').clear()
driver.find_element(By.ID,'gbDhmm').send_keys('zy1')
driver.find_element(By.ID,'RKIFLF').clear()
driver.find_element(By.ID,'RKIFLF').send_keys('123456')
driver.find_element(By.ID,'AE9uw7').clear()
driver.find_element(By.ID,'AE9uw7').send_keys('123456')
driver.find_element(By.ID,'lKdlCv').clear()
driver.find_element(By.ID,'lKdlCv').send_keys('zy1@qq.com')
driver.find_element(By.ID,'registerformsubmit').click()
sleep(3)

login.loginout()
sleep(3)